﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using ObjectCL;
using DataAccessLayer;

namespace Test_Console
{
    class Program
    {
        static void Main(string[] args)
        {
            try
            {
                if (DataAccess.Instance.LogIn(new User(1, "Thales", "thales", "Cosmin", "Parvulescu", "cosmin@mail.com", 5)))
                {
                    Console.WriteLine("TRUE");
                }
                else
                {
                    Console.WriteLine("FALSE");
                }

                if (DataAccess.Instance.LogIn(new User(2, "Qutory", "qutoryz", "Cosmin", "Parvulescu", "cosmin@mail.com", 5)))
                {
                    Console.WriteLine("TRUE");
                }
                else
                {
                    Console.WriteLine("FALSE");
                }
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }

            Console.ReadKey();
        }
    }
}
